﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.BizComponent.Reg.UI.VM
{
    public class PatientVm : INotifyPropertyChanged
    {
        /// <summary>
        /// 患者ID
        /// </summary>
        private string _patientId;
        public string patientId { get
            {
                return _patientId;
            }
            set
            {
                if (_patientId != value)
                {
                    _patientId = value;
                    OnPropertyChanged(nameof(patientId));
                }
            } }
        /// <summary>
        /// 名称
        /// </summary>
        private string _name;
        public string name
        {
            get
            {
                return _name;
            }
            set
            {
                if (_name != value)
                {
                    _name = value;
                    OnPropertyChanged(nameof(name));
                }
            }
        }
        /// <summary>
        /// 医保类型编码
        /// </summary>
        private string _patientTypeNo;
        public string patientTypeNo
        {
            get
            {
                return _patientTypeNo;
            }
            set
            {
                if (_patientTypeNo != value)
                {
                    _patientTypeNo = value;
                    OnPropertyChanged(nameof(patientTypeNo));
                }
            }
        }
        /// <summary>
        /// 医保类型描述
        /// </summary>
        private string _patientTypeDesc;
        public string patientTypeDesc
        {
            get
            {
                return _patientTypeDesc;
            }
            set
            {
                if (_patientTypeDesc != value)
                {
                    _patientTypeDesc = value;
                    OnPropertyChanged(nameof(patientTypeDesc));
                }
            }
        }
        /// <summary>
        /// 接口标识
        /// </summary>
        private String _interfaceId;
        public String interfaceId
        {
            get { return _interfaceId; }
            set
            {
                if (value != _interfaceId)
                {
                    _interfaceId = value;
                    OnPropertyChanged(nameof(interfaceId));
                }
            }
        }


        public event PropertyChangedEventHandler PropertyChanged;

        protected void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
